package com.linjiahao.servicebase.exception;

import lombok.Getter;
import lombok.ToString;

/**
 * @ClassName ErrorMessage
 * @Description: TODO
 * @Author linjiahao
 * @Date 24/12/2021
 **/
@Getter
@ToString
public enum  ErrorMessage {
    USER_NOT_LOGIN(1001,"用户未登录"),
    SYSTEM_EXCEPTION(1002,"系统异常，请稍后重试"),
    TOKEN_IS_NOT_VALIDATE(1003,"token无效或已过期"),
    PARAMETER_CANNOT_EMPTY(1004,"请求参数不允许为空"),
    VERIFICATION_CODE_ERROR(1005,"验证码错误，请输入正确验证码"),
    VERIFICATION_CODE_HAS_EXPIRED(1006,"验证码已过期，请重新获取"),
    ADD_FRIEND_NOT_FOUND(1007,"申请添加的好友不存在"),
    NOT_ALLOW_ADD_MYSELF(1008,"不允许添加自己为好友"),
    ADD_FRIEND_FAIL(1009,"添加好友失败，不存在该申请"),
    ;

    public int errorCode;
    public String message;

    ErrorMessage(int errorCode,String message){
        this.errorCode = errorCode;
        this.message= message;
    }

}
